package com.shenmazong.controller;

import com.shenmazong.dto.TbCompany;
import com.shenmazong.service.TbCompanyService;
import com.shenmazong.utils.ResultResponse;
import com.shenmazong.vo.BatchChooseIdVo;
import com.shenmazong.vo.ListParamVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 阿瑞
 * @version 1.0
 * @description TODO
 * @class TbCompanyController ???
 * @date 2021/9/21 18:31
 */
@RestController
@RequestMapping("company")
public class TbCompanyController {
    @Autowired
    private TbCompanyService tbCompanyService;
    @PostMapping("findAllCompanyStudent")
    public ResultResponse findAllCompanyStudent(@RequestBody ListParamVo listParamVo){
        return tbCompanyService.findAllCompanyStudent(listParamVo);
    }
    @PostMapping("saveCompany")
    public ResultResponse saveCompany(@RequestBody TbCompany tbCompany){
        return tbCompanyService.saveCompany(tbCompany);
    }
    @PostMapping("updateCompany")
    public ResultResponse updateCompany(@RequestBody TbCompany tbCompany){
        return tbCompanyService.updateCompany(tbCompany);
    }
    @PostMapping("deleteCompany")
    public ResultResponse deleteCompany(@RequestBody BatchChooseIdVo batchChooseIdVo){
        return tbCompanyService.deleteCompany(batchChooseIdVo);
    }
    @PostMapping("getJob")
    public ResultResponse getJob(@RequestBody BatchChooseIdVo batchChooseIdVo){
        return tbCompanyService.getJob(batchChooseIdVo);
    }
}
